<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html id="designdetector-com" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
    <?php 
    $conn = mysql_connect("127.0.0.1","root","");
    mysql_select_db("xingtan");
    $id = mysql_real_escape_string($_GET['id']);
    $sql = "DELETE FROM authors WHERE id=" . $id . ";";
    print($sql);
    if ($id) {
      mysql_query($sql);
      print 'remove ok';
    } else {
      print 'para error';
    }
    mysql_close($conn);
    ?>
</body>
